package main

import "fmt"


// 结构体就是字段的集合
type Point struct {
	X int
	Y int
}

func (me *Point) MoveTo(x, y int) {
	me.X = x
	me.Y = y
}


func main() {
	p := Point{1, 2}
	p.MoveTo(10, 20)

	fmt.Println(p)


}

